-
Notifications
You must be signed in to change notification settings - Fork 31
[OSPRH-21931] Upgrade to Operator SDK 1.41.1 #356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[OSPRH-21931] Upgrade to Operator SDK 1.41.1 #356
Conversation
|
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/d3b1be75a102487ba94b7e6101d4aa44 ❌ openstack-baremetal-operator-content-provider FAILURE in 8m 22s |
51a6aa9 to
222b1ed
Compare
|
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/c35ac5afc1e24f2892c1654c314e770c ❌ openstack-baremetal-operator-content-provider FAILURE in 8m 20s |
|
This is failing on the |
This is expected at the moment. Need to add |
|
recheck |
Hmm.. I see other PRs also faling with that test.. Maybe we can avoid using a fixed port. let me propose something. |
|
Sorry I edited your comment and messed it up. |
cmd/main.go
Outdated
| } | ||
| } | ||
|
|
||
| if err := mgr.AddHealthzCheck("healthz", healthz.Ping); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
healthz.Ping -> checker ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! Fixed.
acb5a5f to
b9a662b
Compare
|
This change depends on a change that failed to merge. Change openstack-k8s-operators/install_yamls#1110 is needed. |
b9a662b to
550a8f0
Compare
|
This change depends on a change that failed to merge. Change openstack-k8s-operators/openstack-operator#1683 is needed. |
550a8f0 to
a8dfcf0
Compare
|
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/eadd35b9f23048728f1a8c1c90544c30 ❌ openstack-baremetal-operator-content-provider FAILURE in 12m 04s |
|
|
recheck |
85a1590 to
7d9f8e9
Compare
|
|
||
| return ctrl.NewWebhookManagedBy(mgr). | ||
| For(r). | ||
| Complete() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove SetupWebhookWithManager
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
want to remove this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
| var metricsCertPath, metricsCertName, metricsCertKey string | ||
| var webhookCertPath, webhookCertName, webhookCertKey string | ||
| var enableLeaderElection bool | ||
| var probeAddr string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should readd pprofBindAddress
openstack-baremetal-operator/main.go
Line 66 in 6890507
| var pprofBindAddress string |
could do in a follow up
config/manager/kustomization.yaml
Outdated
| newName: quay.io/andrewbays/openstack-baremetal-operator | ||
| newTag: v0.0.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert
7d9f8e9 to
f1ca67e
Compare
|
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/3666bb514f99441fb4c57f623837bf66 ❌ openstack-baremetal-operator-content-provider FAILURE in 5m 35s |
08e7898 to
f30c66f
Compare
This commit migrates the openstack-baremetal-operator from Operator SDK 1.31.0 to 1.41.1, following the new project structure and best practices introduced in the newer SDK version. Major Changes: Project Structure Reorganization: - Moved entry point from root main.go to cmd/main.go - Migrated pkg/ directory to internal/ structure - Moved controllers from controllers/ to internal/controller/ - Created internal/webhook/v1beta1/ for webhook registration - Reorganized internal packages: openstackbaremetalset/ and openstackprovisionserver/ Webhook Architecture Updates: - Separated webhook registration (internal/webhook/v1beta1/) from webhook logic (api/v1beta1/*_webhook.go) - Removed kubebuilder:webhook annotations from API webhook files - Updated webhook setup to use internal webhook registration functions - Added SetupWebhookClient() function for proper client initialization - Updated test files to use new webhook structure Configuration Updates: - Cert-Manager: Split certificate.yaml into certificate-webhook.yaml and certificate-metrics.yaml, added issuer.yaml - Metrics: Added metrics_service.yaml, manager_metrics_patch.yaml, and cert_metrics_manager_patch.yaml - RBAC: Added metrics_auth_role.yaml, metrics_auth_role_binding.yaml, metrics_reader_role.yaml, and admin roles for CRs - Network Policies: Added allow-metrics-traffic.yaml and allow-webhook-traffic.yaml - Prometheus: Updated monitor.yaml and added monitor_tls_patch.yaml - Removed deprecated auth proxy configurations - Updated manager.yaml with new labels, security context, and resource limits Build System: - Updated Makefile for new project structure - Updated PROJECT file with new layout and plugin version - Updated Dockerfile to use new cmd/main.go entry point - Updated .ci-operator.yaml Test Updates: - Updated tests/functional/suit_test.go to use internal/webhook/v1beta1 - Updated test imports to use internal/controller instead of controllers Related: https://issues.redhat.com/browse/OSPRH-21931 Co-authored-by: Composer AI <[email protected]>
f30c66f to
e447eed
Compare
stuggi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: abays, stuggi The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
9b1fcb2
into
openstack-k8s-operators:main
This commit migrates the openstack-baremetal-operator from Operator SDK 1.31.0 to 1.41.1, following the new project structure and best practices introduced in the newer SDK version.
Major Changes:
Project Structure Reorganization:
Webhook Architecture Updates:
Configuration Updates:
Build System:
Test Updates:
Related: https://issues.redhat.com/browse/OSPRH-21931
Co-authored-by: Composer AI [email protected]
Depends-On: openstack-k8s-operators/openstack-operator#1683